html {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}
*:before, *:after {
  box-sizing: inherit;
}

body {
  width: 100%;
  height: 100vh;
  background-color: #333;
  font-family: sans-serif;
  display: grid;
  place-content: center;
}

.text {
  display: flex;
  cursor: default;
  font-family: "Roboto", sans-serif;
  font-size: 6rem;
  font-weight: bold;
}
.text span {
  padding: 0 4px;
  color: #a32c99;
  opacity: 1;
  text-shadow: 3px 3px #ff5df6;
  transition: opacity 1s, text-shadow 0.2s;
}
.text span.loading {
  opacity: 0;
}
.text span:hover {
  text-shadow: 7px 7px #ffe1fd;
}
.text span:hover + span, .text span:has(+ span:hover) {
  text-shadow: 5px 5px #f598f0;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
}
.container .chrome-text {
  position: relative;
  text-transform: uppercase;
  font-family: "Russo One", sans-serif;
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 0, #c0c0c0 30%, #999 45%, #666 65%, #fff 95%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 0 #4a4a4a, 4px 4px 0 #3a3a3a, 6px 6px 0 #2a2a2a, 8px 8px 10px rgb(0, 0, 0);
  will-change: background-position;
  --webkit-font-smoothing: antialiased;
}
.container .chrome-text::before {
  content: "CODEPEN";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, transparent 6%, rgba(255, 255, 255, 0.85) 7.5%, transparent 9%, transparent 100%);
  -webkit-background-clip: text;
          background-clip: text;
  background-size: 200% 100%;
  background-position: 0 0;
  animation: chrome-shine 10s ease-in-out infinite;
}

@keyframes chrome-shine {
  from {
    background-position: -100% 0;
  }
  to {
    background-position: 300% 0;
  }
}